package com.hospital.controller;


import com.hospital.dao.StatisDao;
import com.hospital.domain.Statis;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/statis")
public class StatisController {

    @Autowired
    StatisDao statisDao;


    @GetMapping("/selectAll")
    public List<Statis> selectAllStatus(){
        return statisDao.selectAllStatis();
    }
}
